aa3982
@@ -105,6 +105,9 @@
public static void setOutputSchema(Job job, HCatSchema hcatSchema)
   public List<InputSplit> getSplits(JobContext jobContext)
     throws IOException, InterruptedException {
     Configuration conf = jobContext.getConfiguration();
+    // Set up recursive reads for sub-directories.
+    // (Otherwise, sub-directories produced by Hive UNION operations won't be readable.)
+    conf.setBoolean("mapred.input.dir.recursive", true);
 
     //Get the job info from the configuration,
     //throws exception if not initialized
